<section class="section">
	<script>
		$(function() {
			$("#password_change").validate({
				rules: {
					 mem_pwd : {required:true, password:true}
					,mem_pwd_change : {required:true, password:true}
					,mem_pwd_change_confirm : {required:true, password:true, equalTo:"#mem_pwd_change"}
				}
				,submitHandler : function(form) {
					var param = $("#password_change").serialize();
					
					var url = form.action;
					$.ajax({url:url, type:"POST", data:param, success:function(data){
						if(data.code == mesg.success) {
							alert(data.msg);
							
							sagapo.dialog_close('password');
						} else {
							alert(data.msg);
						}
						
					}});
					
					return false;	
				}
			});
			
			$(".dialog_close").click(function(){
				$("#ajaxLoadForm").dialog('close');
			});
		});
	</script>
	<form name="password_change" id="password_change" method="post" action="{CFG->PATH->WWWADMIN}/member/doPasswordChange">
		<table class="table">
			<caption>
				비밀번호 수정
			</caption>
			<tbody>
				<tr>
					<td>
						<input type="hidden" name="mem_seq" id="mem_seq" value="{seq}" />
						<input type="password" name="mem_pwd" id="mem_pwd" placeholder="현재 비밀번호" class="width_90" />
					</td>
				</tr>
				<tr>
					<td>
						<input type="password" name="mem_pwd_change" id="mem_pwd_change" placeholder="변경 비밀번호" class="width_90" />
					</td>
				</tr>
				<tr>
					<td>
						<input type="password" name="mem_pwd_change_confirm" id="mem_pwd_change_confirm" placeholder="변경 비밀번호 확인" class="width_90" />
					</td>
				</tr>
			</tbody>
		</table>
		<div class="button_area">
			<button type="submit" class="button">변경</button>
		</div>
	</form>
</section>